# -*- encoding: utf-8 -*-
'''
@File    :   do_list_imput.py
@Time    :   2022/11/11 17:39:03
@Author  :   Cms 
@Version :   1.0
@Contact :   2267000140@qq.com
@WebSite    :   www.baidu.com
'''

# here put the import lib

# 使用split函数即可
def inputnum(arg1):
    list1 = arg1.split(' ')

    for i,value in enumerate(list1):
        if value.isdigit():
            list1[i] = int(value)
    print(list1)


str1 = input("请输入一组数据(要求一行输入)，用空格隔开:")
inputnum(str1)